﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

namespace Neo4JConnector.Core
{
    public interface ITransaction : IDisposable
    {
        Task<CypherResult> ExecuteAsync(
            string cypherQuery,
            Dictionary<string, object>? parameters = null,
            CancellationToken cancellationToken = default);

        Task CommitAsync();
        Task RollbackAsync();
    }
}
